package com.runa.rccprotocol.dto.param;

/**
 * 户通断写温度锁 ly
 */
public class TemperatureLock extends Param{

    private byte temperatureLock;

    private float targetTemperature;

    public TemperatureLock(int lock, float temperature) {
        this.temperatureLock = (byte) lock;
        this.targetTemperature = temperature;
    }

    public byte getTemperatureLock() {
        return temperatureLock;
    }

    public void setTemperatureLock(int temperatureLock) {
        this.temperatureLock = (byte) temperatureLock;
    }

    public float getTargetTemperature() {
        return targetTemperature;
    }

    public void setTargetTemperature(float targetTemperature) {
        this.targetTemperature = targetTemperature;
    }

    public byte[] getBytes() {
        byte[] bytes = new byte[3];
        bytes[0] = temperatureLock;
        dataFormat6(targetTemperature, bytes, 1);
        return bytes;
    }
}
